/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.jonasjelten.jcalc.exception;

/**
 *
 * @author Jonas Jelten
 */
public class JCalcException extends Exception{
    public String message;

    public JCalcException(String detailmessage) {
        super(detailmessage);
        this.message = detailmessage;
    }
    public JCalcException() {
        this("Error in jCalc");
    }

    @Override
    public String getLocalizedMessage() {
        return "Fehler in jCalc";
    }

    @Override
    public String getMessage() {
        return message;
    }
}
